/* 通用样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body{
    background-color: #f9f9f9;
}
.nav-container {
    width: 210px;
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    margin-left: 31px;
    margin-top: 59px;
    height: 537px;
    display: flex;
    align-items: center;
}
.iconfont{
    margin-right: 10px;
}
.write-thought2{
    position: absolute;
    top: 50%;
    left: 50%;
}
.post-popup {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    background-color: white;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    z-index: 200;
}
#titleInput {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: none;
    border-bottom: 1px solid #ccc;
    margin-bottom: 10px;
    position: relative;
    outline: none;
}
.char-count {
    float: right;
    color: #999;
    position: absolute;
    top: 35px;
    left: 435px;
}
#contentTextarea {
    width: 100%;
    height: 150px;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    margin-bottom: 10px;
    outline: none;
    position: relative;
}
.char-count2 {
    top: 192px;
    left: 431px;
}
#customAlert {
    background-color: white;
    border: 1px solid #ccc;
    /*box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);*/
    z-index: 1000;
    padding: 15px 10px;
    position: fixed;
    left: 43%;
    top: 10%;

    border-radius: 9px;

}

#customAlert #alertMessage {
    /*padding: 10px;*/


    font-size: 14px;
}

#postButton {
    padding: 8px 15px;
    background-color: #82b1ff;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    float: right;
}
.close-icon {
    position: absolute;
    bottom: 263px;
    right: -32px;
    font-size: 32px;
    cursor: pointer;
}
.mask {
    background-color: black;
    opacity: 0.4;
    width: 100vw;
    height: 100vh;
    z-index: 2;
    position: absolute;
    top: 0;
    left: 0;
    display: none;
}
.user-info {
    text-align: center;
    margin-bottom: 20px;
}

.level-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 10px;
}

.username {
    margin-bottom: 5px;
}

.level-and-score {
    font-size: 16px;
    color: #333;
}

.create-content-btn {
    display: block;
    width: 100%;
    padding: 10px;
    background-color: #50bdef;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    margin-top: 21px;
}

nav {
    margin-top: 20px;
}

.nav-links {
    list-style: none;
}

.nav-item {
    position: relative;
    margin-bottom: 5px;
  a{
      padding: 10px;
  }
}

.nav-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
    padding: 8px;
    border-radius: 3px;
    transition: background-color 0.3s ease;
}

.nav-link:hover {
    background-color: #f3f6f9;
}

.icon {
    width: 20px;
    height: 20px;
    margin-right: 10px;
}

.has-submenu {
    cursor: pointer;
}

.has-submenu .submenu {
    display: none;
    position: absolute;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 3px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
    list-style: none;
    padding: 10px;
    z-index: 100;
}

.has-submenu:hover .submenu {
    display: block;
}

.submenu li {
    margin-bottom: 5px;
}

.submenu a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s ease;
}

.submenu a:hover {
    color: #007bff;
}